<div class="yx-praise-list-box yx-praise-box yx-radius2 zx-min-height">
    <!--/*添加按钮*/-->
    <?= $this->renderFile('@app/views/layouts/toolbar.php'); ?>
    <!--/*列表*/-->

    <?php if(!empty($model)){?>
        <div class="list-boxs">
            <?php foreach($model as $k=>$v){?>
                <div class=" yx-praise-item yx-praise-item1 yx-mr10 yx-radius2">
                    <div class="yx-teacher-img-box"><img class="yx-teacher-img yx-border img-circle" src="images/admin2.jpg"/></div>
                    <h3 class="yx-teacher-name">角色名称:</h3>
                    <h3 class="yx-teacher-name" style="padding-top:0;"><?=!empty($v['name'])?$v['name']:'缺失'?></h3>
                    <h4 class="yx-convert-rate yx-font13"><?=!empty($v['description'])?$v['description']:'缺失'?></h4>
                    <div class=" yx-admin-list">
                        <a data-size="500*500" data-name="修改" data-url="<?=\common\components\helpers\Fun::url(['role/update', 'name' => $v['name']])?>" rel="dialog-show-iframe" class="btn yx-class-about yx-bg82d48c yx-radius2">修改</a>
                        <a data-size="500*420" data-name="添加规则约束" data-url="<?=\common\components\helpers\Fun::url(['role/rulepermission', 'name' => $v['name']])?>" rel="dialog-show-iframe" class="btn yx-class-about yx-bg82d48c yx-radius2">规则约束</a>
                        <!--<a rel="record_item_confirm" data-message="确定要删除“<?=$v['name']?>”吗？" data-url=" <?=\common\components\helpers\Fun::url(['role/delete', 'name' => $v['name']])?>" class="btn yx-class-about yx-bga0a0a0 yx-radius2">删除</a>-->
                        <?php if($v['name'] == 'admin'):?>
                            <span class="btn yx-class-about yx-radius2 yx-width98 yx-bga0a0a0 yx-mr0" style="color:#fff; cursor: text" >设置角色权限</span>
                        <?php else:?>
                            <a href="<?=\common\components\helpers\Fun::url(['role/setaccess', 'name' => $v['name']])?>" class="btn yx-class-about yx-radius2 yx-bg70d0c1 yx-width98 yx-mr0" >设置角色权限</a>
                        <?php endif;?>
                    </div>
                </div>
            <?php }?>
          <div class="clear"></div>
        </div>
    <?php }?>
</div>









